import React, {PropTypes} from 'react'
import WeiboList from './list'
import Loading from './loading'
import './index.css'

export default class Weibo extends React {
  static propTypes = {
    wbMap: PropTypes.isrequired
  }

  componentWillMount() {
  }

  componentDidMount() {
  }

  componentDidUpdate(prevProps, prevState) {
  }

  render() {
    return (
      <div className="wrapper">
        <div className="top-bar">
          <a href="javascript:;" className="top-bar-btn-compose"></a>
          <a href="javascript:;" className="top-bar-btn-refresh"></a>
        </div>
        <div className="cont">
          <Loading />
          <div className="wb-list">
            <WeiboList wbMap={this.wbMap}/>
          </div>
        </div>
      </div>
    )
  }
}
